package com.example.demo.day.config.learn.design.adapter.p2;

import com.example.demo.day.config.learn.design.adapter.p1.Adaptee;
import com.example.demo.day.config.learn.design.adapter.p1.Target;

public class ObjectAdapter implements Target {

    private Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    @Override
    public void request() {
        adaptee.specificRequest();
    }
}
